home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5605 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Looking for a clear screen function
  5. Date: 19 Feb 1996 15:28 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <19FEB199615280719@erich.triumf.ca>
  9. References: <4gaeba$d9h@nkosi.well.com>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4gaeba$d9h@nkosi.well.com>, rickyarm@well.com () writes...
  14. >Hello there,
  15. >Does anyone know of a clear screen function to use both in turboC++ on
  16. >a PC and one to use in standard C for Unix machines
  17.  
  18. Any fancy screen manipulation (actually, anything more complex than printing
  19. where the cursor happens to be) is very platform dependent.  The C language
  20. itself doesn't provide any support for this.
  21.  
  22. For MS-DOS text mode, Borland provides clrscr(), prototyped in conio.h.  For
  23. graphics, there is cleardevice(), in graphics.h. (don't know about Windoze)
  24.  
  25. For unix, the usual suggestion seems to be to use the "curses" library.
  26.  
  27. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  28. Internet: bennett@triumf.ca         | of one another only when one can be
  29. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  30. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  31. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  32.  
  33.  
  34.  
  35.  
  36.